package ${group}.${artifact}.core.mapper.${moduleName}.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
<#list importPackages as importPackage>
import ${importPackage};
</#list>

/**
 * ${desc} pojo
 *
 * @author ${author}
 * @date ${nowDateTime}
 */
@Data
@TableName("${tableName}")
@ApiModel(description = "${desc}")
public class ${className} implements Serializable {

    <#list columnInfoList as column>
    <#if primaryKeyColName == column.propertyName >
    @TableId(type = IdType.AUTO)
    </#if>
    <#if "${column.propertyName}" == "deleted">
    @TableField(fill = FieldFill.INSERT, select = false)
    </#if>
    <#if "${column.propertyName}" == "createTime">
    @TableField(fill = FieldFill.INSERT)
    </#if>
    <#if "${column.propertyName}" == "updateTime">
    @TableField(fill = FieldFill.UPDATE)
    </#if>
    @ApiModelProperty(value = "${column.colDesc}")
    private ${column.propertyType!"null"} ${column.propertyName};

    </#list>
}